#==============================================================================
# mwow
#==============================================================================
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)

PROJECT(mwow)

#------------------------------------------------------------------------------
IF (WIN32)
ADD_DEFINITIONS(-D__WINDOWS__)
ADD_DEFINITIONS(-D_WIN32_WINNT=0x0501)
ADD_DEFINITIONS(-W3)
ELSE()
ADD_DEFINITIONS(-D__LINUX__)
ADD_DEFINITIONS(-Wall)
    IF (CMAKE_COMPILER_IS_GNUCXX)
        ADD_DEFINITIONS(-std=gnu++0x)
    ELSE ()
        ADD_DEFINITIONS(-std=stdc++11)
    ENDIF()
ENDIF()

#------------------------------------------------------------------------------
INCLUDE_DIRECTORIES(
    ${PROJECT_SOURCE_DIR}/deps
    ${PROJECT_SOURCE_DIR}/shared
)

#------------------------------------------------------------------------------
ADD_SUBDIRECTORY(deps)
ADD_SUBDIRECTORY(shared)
ADD_SUBDIRECTORY(realmd)